package com.emser.unc.client.service;

import java.util.ArrayList;

import com.emser.unc.serializable.LocationDTO;
import com.emser.unc.serializable.ResultDTO;
import com.emser.unc.serializable.SellerDTO;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface SellerServiceAsync {

	void addSeller(String userAccountName, SellerDTO seller,
			AsyncCallback<Boolean> callback);

	void getSellers(String cursorString, int range, String userAccountName,
			AsyncCallback<ResultDTO<SellerDTO>> callback);

	void deleteSeller(String userAccountName,
			String sellerName, AsyncCallback<Boolean> callback);

	void updateSeller(String userAccountName, SellerDTO seller,
			AsyncCallback<Boolean> callback);

	void getSerialDevices(String cursorString, int range,
			String userAccountName,
			AsyncCallback<ResultDTO<LocationDTO>> callback);

	void getSellersCount(String userAccountName, AsyncCallback<Integer> callback);

	void getSearchSellers(String cursorString, int range,
			ArrayList<String> searchParam,
			AsyncCallback<ResultDTO<SellerDTO>> callback);

	void getSResultsCount(ArrayList<String> searchParam,
			AsyncCallback<Integer> callback);

	void getSeller(String userNSeller, String userAccountName,
			AsyncCallback<SellerDTO> callback);

	void getSerialDevicesCount(String userAccountName,
			AsyncCallback<Integer> callback);

	void getLocation(String serialDevice, String userName,
			AsyncCallback<LocationDTO> callback);

}
